package com.springboot.demo.ioc.service;

import com.springboot.demo.ioc.dao.FilmDaoIn;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service //业务层组件
public class FilmService implements FilmServiceIn{

    @Resource (name = "filmDao2")
    private FilmDaoIn filmDao;

    @Override
    public void addOne() {
        System.out.println("添加一个电影");
        filmDao.insertOne();
    }
}
